package com.example.work4.view;

import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Context;
import android.content.res.Resources;
import android.widget.EditText;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

public class EditDialog  extends Dialog {
    public TextView textView;
    public EditText editText;

    protected EditDialog(Context context) {
        super(context);
    }

    protected EditDialog(Context context, boolean cancelable, OnCancelListener cancelListener) {
        super(context, cancelable, cancelListener);
    }

    protected EditDialog(Context context, int themeResId) {
        super(context, themeResId);
    }


    @Override
    public void dismiss(){
        textView.setText(editText.getText());
        super.dismiss();
    }

}
